package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

@Service
public interface EmpService {
    //分页查询
    PageBean page(Integer page, Integer pageSize,String name, Short gender, LocalDate begin, LocalDate end);

    //批量删除员工
    void delete(List<Integer> ids);

    //新增员工
    void save(Emp emp);

    //根据ID查询员工
    Emp findById(Integer id);

    //更新员工
    void update(Emp emp);

    //登录
    Emp login(Emp emp);
}
